<extend name="public/base"/>

<block name="content"> 
      <ul class="nav nav-tabs">
        <li ><a href="{:U('Daike/index')}">代课登记</a></li>
        <li><a href="{:U('Daike/search')}">代课统计</a></li>
        <li class="active"><a href="{:U('Daike/show')}">代课情况</a></li>
      </ul>

<!-- 标题栏 -->	  
    <h4 class="center">最近代课安排</h4> 
    <!-- 表单start -->      
        <form method='get' id="form" name="form"  action="{:U('Daike/show')}" class="form-inline">
         <div class="col-md-4 form-group">
           <label class="control" for="class">请选择要查询的月份：</label>         
            <select name="d_month" id="d_month" class="form-control">
            <option >{:date('n')}月</option>
              <for start="1" end="13">

                <option value="{$i}月">{$i}月</option>
                </for>             
         </select></div>  
           <div class="col-md-3 form-group">
           <label class="control" for="class">班 级：</label>
            <select name="class" id="class" class="form-control">
            <option value="">所有班级</option>
            <volist name="classlist" id="vo">
                <option value="{$vo.class}">{$vo.class}</option>
                </volist>               
         </select></div> 
         <button type="submit" class="btn btn-success">查询</button>
      </form>  
    <!-- 表单end -->     

    <!-- 数据列表 -->   
  <!-- 数据列表 -->
        <div class="data-table table-striped">
         <table class="table table-bordered">
             <thead>
            <tr class="info ">
                
                <th>序号</th>
                <th>代课日期</th>
                <th>班级</th>
                <th>节次</th>
                <th>代课教师</th>                              
                <th>代课事由</th>
                <th>代课类别</th>  
                <th>登记日期</th>                
                <th>操  作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="vo">
                <tr>                    
                    <td>{$i} </td>                    
                    <td>{$vo.d_date}</td>
                    <td>{$vo.class}</td>
                    <td>{$vo.d_jieci}</td>
                    <td>{$vo.teacher}</td>                    
                    <td><a href="{:U('edit','id='.$vo['id'])}" title="{$vo.shiyou}">查看详情:{$vo.shiyou|msubstr=0,8,'utf-8',true}</a></td>
                    <td>{$vo.category}</td>
                    <td>{$vo.update_time|date='Y-m-d',###}</span></td>                      
                    <td>
                        <a href="{:U('edit','id='.$vo['id'])}" >编辑</a> |                        
                        <a href="{:U('delete?id='.$vo['id'])}" class="authorize">删除</a>                      
                        </td>
                </tr>
                </volist>
                <else/>
                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
            </table>
        </div>    

</block>